<table class="table table-striped table-bordered table-hover" id="datatable">
    <thead>
    <tr>
        <!-- <th class="text-center"></th> -->
        <th class="text-center">门店</th>
        <th class="text-center">商品id</th>
        <th class="text-center">商品编号</th>
        <th class="text-center">商品名称</th>
        <th class="text-center">规格</th>
        <th class="text-center">商品一级分类</th>
        <th class="text-center">商品二级分类</th>
        <th class="text-center">商品三级分类</th>
        <th class="text-center">期初库存</th>
        <th class="text-center">期初成本</th>
        <th class="text-center">入库库存</th>
        <th class="text-center">入库成本</th>
        <th class="text-center">结算后退库</th>
        <th class="text-center">结算后退库成本</th>
        <th class="text-center">维修出库</th>
        <th class="text-center">维修成本</th>
        <th class="text-center">销售出库</th>
        <th class="text-center">销售成本</th>
        <th class="text-center">调出数</th>
        <th class="text-center">调出成本</th>
        <th class="text-center">盘点差异</th>
        <th class="text-center">差异成本</th>
        <th class="text-center">退供货商</th>
        <th class="text-center">退供货商成本</th>
        <th class="text-center">期末库存</th>
        <th class="text-center">期末成本</th>
    </tr>
    </thead>
    <tbody>
    @foreach($report as $_report)
        <tr class="text-center">
            <td>{{$_report['shop_name']}}</td>
            <td>{{$_report['item_id']}}</td>
            <td>{{$_report['item_code']}}</td>
            <td>{{$_report['item_brand_name']}}{{$_report['item_series_name']}}{{$_report['item_model']}}({{$_report['item_unit']}})</td>
            <td>{{$_report['item_specification']}}</td>
            <td>{{$_report['level_1_name']}}</td>
            <td>{{$_report['level_2_name']}}</td>
            <td>{{$_report['level_3_name']}}</td>
            <td>{{$_report['start_stock']}}</td>
            <td>{{$_report['start_amount']/100}}</td>
            <td>{{$_report['into_stock']}}</td>
            <td>{{$_report['into_amount']/100}}</td>
            <td>{{$_report['return_into_stock']}}</td>
            <td>{{$_report['return_into_amount']/100}}</td>
            <td>{{$_report['orderout_stock']}}</td>
            <td>{{$_report['orderout_amount']/100}}</td>
            <td>{{$_report['saleout_stock']}}</td>
            <td>{{$_report['saleout_amount']/100}}</td>
            <td>{{$_report['diaochu_stock']}}</td>
            <td>{{$_report['diaochu_amount']/100}}</td>
            <td>{{$_report['pandian_stock']}}</td>
            <td>{{$_report['pandian_amount']/100}}</td>
            <td>{{$_report['supplier_stock']}}</td>
            <td>{{$_report['supplier_amount']/100}}</td>
            <td>{{$_report['end_stock']}}</td>
            <td>{{$_report['end_amount']/100}}</td>
        </tr>
    @endforeach
    </tbody>
</table>     